﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:menu="http://schemas.devexpress.com/winfx/2008/xaml/agmenu" x:Class="B2B.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" Width="1024" Height="900">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition Height="0"/>
            <RowDefinition Height="710"/>
            <RowDefinition Height="0"/>
        </Grid.RowDefinitions>
        <Border x:Name="ContentBorder" Grid.Row="2" Margin="0" Grid.RowSpan="2">
            <sdk:Frame x:Name="ContentFrame"
                              Source="/Login" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed" Width="Auto" Margin="0">
                <sdk:Frame.UriMapper>
                    <sdk:UriMapper>
                        <sdk:UriMapping Uri="" MappedUri="/Views/Login.xaml"/>
                        <sdk:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>
                    </sdk:UriMapper>
                </sdk:Frame.UriMapper>
            </sdk:Frame>
        </Border>
        <Border Margin="0" CornerRadius="5" BorderThickness="2,0,0,0">
        	<Border.Background>
        		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        			<LinearGradientBrush.RelativeTransform>
        				<CompositeTransform CenterY="0.5" CenterX="0.5" Rotation="-90"/>
        			</LinearGradientBrush.RelativeTransform>
        			<GradientStop Color="#FF871B20" Offset="0"/>
        			<GradientStop Color="White" Offset="1"/>
        		</LinearGradientBrush>
        	</Border.Background>
        	<Grid>
        		<Grid.ColumnDefinitions>
        			<ColumnDefinition Width="29*"/>
        			<ColumnDefinition Width="6*"/>
                    <ColumnDefinition Width="111*"/>
                </Grid.ColumnDefinitions>
                <menu:AgMenu x:Name="menu1" Margin="0,0,0,5" VerticalAlignment="Bottom" Grid.Column="2" HorizontalAlignment="Right">
        			<menu:AgMenuItem Header="Ana Sayfa" Click="HomeClick" />
        			<menu:AgMenuItem Header="Cari Bilgilerim">
        				<menu:AgMenuItem Header="Cari Analiz"  />
        				<menu:AgMenuItem Header="Cari Ekstre" />
        			</menu:AgMenuItem>
        			<menu:AgMenuItem Header="Siparişlerim" Click="SiparisListesi"/>
        			<menu:AgMenuItem x:Name="mnYonetim" Header="Yönetici Menüsü" Visibility="Collapsed" >
        				<menu:AgMenuItem Header="Kullanıcı Tanıtım" Click="KullaniciTanitimClick"  />
                        <menu:AgMenuItem Header="Grup Tanıtım" Click="AgMenuItem_Click_1"  />
        			</menu:AgMenuItem>
        		</menu:AgMenu>
        		<Image Margin="2,2,90,2" Source="logo.jpg" Stretch="Fill" Visibility="Collapsed"/>
                <StackPanel Grid.Column="1" HorizontalAlignment="Left" Height="80" Margin="10,10,0,0" VerticalAlignment="Top" Width="22" Visibility="Collapsed">
                    <Image HorizontalAlignment="Right" Margin="0,0,-60,0" Source="btnekle.jpg" Stretch="Fill" Width="60" Height="24"/>
                    <Image HorizontalAlignment="Right" Margin="0,0,4,0" Source="add.png" Stretch="Fill" Width="18" Height="18"/>
                    <Image Height="22" Source="sil.png" Stretch="Fill"/>
                </StackPanel>
                <TextBlock Margin="5,21,-122,20" TextWrapping="Wrap" TextAlignment="Center" FontFamily="BuxtonSketch.ttf#Buxton Sketch" FontSize="26.667" Foreground="White" FontWeight="Bold" FontStyle="Italic" Grid.ColumnSpan="2"><Run Text="NEW BOSS"/><LineBreak/><Run Text="OFİS MALZEMELERİ B2B SİSTEMİ"/></TextBlock>
            </Grid>
        </Border>
    </Grid>
</UserControl>
